package kr.co.bettersoftportal.site.management.service;

import kr.co.bettersoftportal.site.domain.NoticeBoard;
import kr.co.bettersoftportal.site.domain.UploadFile;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: Yusung
 * Date: 12. 2. 1
 * Time: 오후 3:58
 * To change this template use File | Settings | File Templates.
 */
public interface NoticeBoardService {

    // Notice Board Service
    public abstract List getBoardListBySearchword(NoticeBoard board);
    public abstract List getBoardListByNo(NoticeBoard board);
    public abstract String getTotalCountBySearchword(NoticeBoard board);
    public abstract String getTotalCountByNo(NoticeBoard board);
    public abstract String writeBoard(NoticeBoard board);
    public abstract String updateBoard(NoticeBoard board);
    public abstract String deleteBoard(NoticeBoard board);
    public abstract NoticeBoard getBoardByNo(String notice_board_no);

    public abstract String updateReplyCount(NoticeBoard board);
    public abstract String updateHitCount(NoticeBoard board);
    public abstract String updateVoteCount(NoticeBoard board);
    public abstract String updateNegativeCount(NoticeBoard board);
    public abstract String updateReportCount(NoticeBoard board);

    public abstract UploadFile uploadFile(MultipartFile file, String realPath);

    public abstract String updateBoardNotImage(NoticeBoard board);
}
